package com.guofen.dao;

import com.guofen.pojo.SjqSolidliquidProduceMaintenanceMonth;
import com.guofen.pojo.SjqSolidliquidProduceMaintenanceWeek;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SjqSolidliquidProduceMaintenanceWeekMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SjqSolidliquidProduceMaintenanceWeek record);

    int insertSelective(SjqSolidliquidProduceMaintenanceWeek record);

    SjqSolidliquidProduceMaintenanceWeek selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SjqSolidliquidProduceMaintenanceWeek record);

    int updateByPrimaryKey(SjqSolidliquidProduceMaintenanceWeek record);

    SjqSolidliquidProduceMaintenanceWeek getlatest(@Param("equipment_name") String equipment_name,
                                                   @Param("maintenance_content") String maintenance_content);


    List<SjqSolidliquidProduceMaintenanceWeek> getlastByName(String equipmentName);


    List<SjqSolidliquidProduceMaintenanceWeek> getWeekRecords();

    List<SjqSolidliquidProduceMaintenanceWeek> selectAll();

    List<SjqSolidliquidProduceMaintenanceWeek> selectByDate(@Param("startDate") String startDate,
                                                             @Param("endDate") String endDate);
}